﻿/*-----------------------------------------------------------------------
 * <copyright file="ClientSelectOPInforDataList.cs" company="O-RID">
 *     Copyright (c)2010 O-RID Co.,Ltd.
 * </copyright>
 * <author>zhangjun</author>
 *          
 * <summary> 公有类  用于存储或是转换服务端传来的数据 
 *          
 * 
 * </summary>
 *-----------------------------------------------------------------------
 */

namespace Orid.Management.Statistics.OperatorUnitMangement.Common.FunctionList
{
    using System.ComponentModel;

    #region 当前SV或SSV的所有OP信息
    /// <summary>
    /// 当前SV或SSV的所有OP信息
    /// 接收WCFStatisticsToolsDB.WCFOPEntrySpeedQueryRef 服务端数据
    /// 增加了一个CHECK状态字段
    /// </summary>
    public class ClientSelectOPInforDataList:INotifyPropertyChanged
    {
        /// <summary>
        /// 为check专用 selectIDCheck
        /// </summary>
        private bool selectIDCheck;

        /// <summary>
        /// SvID 督导 ID
        /// </summary>
        private string supervID = string.Empty;

        /// <summary>
        /// operatorID OP编号
        /// </summary>
        private string operatorID = string.Empty;

        /// <summary>
        /// OP姓名  operatorName
        /// </summary>
        private string operatorName = string.Empty;

        /// <summary>
        /// OP所在组别 unit
        /// </summary>
        private string unit = string.Empty;

        /// <summary>
        /// Gets or sets a value indicating whether selectIDCheck is true
        /// 为check专用
        /// </summary>
        /// <value >08/11/2010 ADD </value>
        public bool SelectIDCheck
        {
            get { return selectIDCheck; }
            set
            {
                selectIDCheck = value;
                NotifyPropertyChange("SelectIDCheck");
            }
        }

        /// <summary>
        /// Gets or sets value of svID
        /// SvID  督导ID
        /// </summary>
        public string SvID
        {
            get { return this.supervID; }
            set { this.supervID = value; }
        }

        /// <summary>
        /// Gets or sets value of operatorID
        /// operatorID
        /// </summary>
        public string OpetatorID
        {
            get { return this.operatorID; }
            set { this.operatorID = value; }
        }

        /// <summary>
        /// Gets or sets value of operatorName
        /// OP姓名
        /// </summary>
        public string OpName
        {
            get { return this.operatorName; }
            set { this.operatorName = value; }
        }

        /// <summary>
        /// Gets or sets value of Unit
        /// OP所在组别 Unit
        /// </summary>
        public string Unit
        {
            get { return this.unit; }
            set { this.unit = value; }
        }

        /// <summary>
        /// 在更改属性值时发生。
        /// </summary>
        /// <value>08/11/2010 ADD </value>
        public event PropertyChangedEventHandler PropertyChanged;
        /// <summary>
        /// Notifies the property change.
        /// </summary>
        /// <param name="propertyName">Name of the property.</param>
        /// <value>08/11/2010 ADD </value>
        private void NotifyPropertyChange(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

    }

    #endregion  当前SV或SSV的所有OP
}
